package com.gome.ocean.dao.authority;

import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Repository;

import com.gome.ocean.dao.model.authority.Role;

import java.util.List;
import java.util.Map;

@Repository("roleDAO")
public interface RoleDAO {

    Long insertRole(Role Role);

    int removeRoleById(Long id);

    int updateRole(Role Role);

    Role findRoleById(Long id);

    List<Role> findAllRoles(RowBounds rowBounds);
    
    Role getRoleByRoleName(Map<String, Object> map);
    
    public List<Role> getAllRoles();
    
    public Role getRoleByMap(Map<String, Object> map);
}
